import http from "./request";

async function getSearchList(params) {
  let { data } = await http.get(
    `/v1/pois?type=search&city_id=32&keyword=${params.keyword}`
  );
  return data;
}
//获取 搜索结果列表接口

async function getResList(params) {
  let { data } = await http.get(
    `/shopping/restaurants?latitude=${params.wd}&longitude=${params.jd}`
  );
  return data;
}
//获取饭店商家列表
export { getSearchList, getResList };
